package com.xiangban.yanglaodajie_platform.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangban.yanglaodajie_platform.entity.*;
import com.xiangban.yanglaodajie_platform.entity.dto.ShopDto;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/2/20 17:11
 */
@Repository
public interface ShopMapper extends BaseMapper<Shop> {

    Integer selectCityCodeByName(String name);

    List<Honor>selectHonorList(Integer shopId);
    List<Leader>selectLeaderList(Integer shopId);
    ShopDto selectWaitGet(Orders orders);
    ShopDto findWaitDestroy(Orders orders);
    ShopDto findWaitRefund(Orders orders);
    ShopDto findWaitConfirm(Orders orders);
    ShopDto findWaitTakes(Orders orders);
    ShopExpand selectShopExpand(Shop shop);
    ShopDto selectShopInfo(Shop shop);
    List<ShopDto> getRegionCity(ShopDto shopDto);
    Shop findShopByShopId(Integer shopId);
    List<Orders> getOrdersList(Orders orders);
}
